package com.yamaikeji.system.service.impl.plan;

import com.yamaikeji.system.domain.plan.Memo;
import com.yamaikeji.system.mapper.plan.MemoMapper;
import com.yamaikeji.system.service.plan.IMemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 便笺Service业务层处理
 * 
 * @author yamaikeji
 * @date 2023-12-10
 */
@Service
public class MemoServiceImpl implements IMemoService {

    @Autowired
    private MemoMapper memoMapper;

    /**
     * 查询便笺列表
     * 
     * @param memo 便笺
     * @return 便笺
     */
    @Override
    public List<Memo> selectMemoList(Memo memo) {
        return memoMapper.selectMemoList(memo);
    }

    /**
     * 查询便笺
     *
     * @param memo 便笺
     * @return 便笺
     */
    @Override
    public Memo selectMemo(Memo memo) {
        return memoMapper.selectMemo(memo);
    }

    /**
     * 新增便笺
     * 
     * @param memo 便笺
     * @return 结果
     */
    @Override
    public int insertMemo(Memo memo) {
        return memoMapper.insertMemo(memo);
    }

    /**
     * 修改便笺
     * 
     * @param memo 便笺
     * @return 结果
     */
    @Override
    public int updateMemo(Memo memo) {
        return memoMapper.updateMemo(memo);
    }

    /**
     * 删除便笺信息
     * 
     * @param memo 便笺
     * @return 结果
     */
    public int deleteMemoByMemoNo(Memo memo) {
        return memoMapper.deleteMemoByMemoNo(memo);
    }
}
